import http from '../utils/http'

/* 获取日期 */
export const reqGetDate = () => {
  return http.get('/appoint/date')
}

/* 获取对应的时间点 */
export const reqGetPoint = (parent) => {
  return http.get(`/appoint/detail?parent=${parent}`)
}

/* 提交预约 */
export const SubmitAppoint = (id) => {
  return http.post(`/appoint/submit?id=${id}`)
}

/* 获取当前用户预约时段 */
export const reqGetPeriod = () => {
  return http.get('/appoint/mine')
}